import { observable } from 'mobx';
import { GetUserList } from '@src/service/userApi';

const OneStore = observable({


    createNavList: [],

    userList: [],

    getCreateNavList() {
        //异步获取数据
        this.createNavList = [{
            title: '基本信息',
            pathTo: '/One',
            target: ''
        }, {
            title: '会议参数',
            pathTo: '/Two',
            target: ''
        }, {
            title: '画面合成',
            pathTo: '/Three',
            target: ''
        }, {
            title: '轮询',
            pathTo: '/Four',
            target: ''
        }, {
            title: '电视墙',
            pathTo: '/Five',
            target: ''
        }];
    },

    async getUserList() {
        var resultData = await GetUserList();
        this.userList = resultData.list;
        console.log(this.userList, "==========this.userList==========");
    }
})

export default OneStore;